package com.xnet.datahandler.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xnet.datahandler.domain.MysqlDatabaseRepository;
import com.xnet.datahandler.service.DataInitService;

/**
* 数据初始化服务
* @author 目田
* 2016年12月21日
*/
@Service
public class DataInitServiceImpl<T> implements DataInitService<T>{
	
	@Autowired
	private MysqlDatabaseRepository mysqlDatabaseRepository;

	@Override
	public List<Object[]> readFromExcel() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Map<String, Object>> getTables() {
		return mysqlDatabaseRepository.getTables();
	}

	@Override
	public List<Map<String, Object>> getColumns(String tableName) {
		return mysqlDatabaseRepository.getColumns(tableName);
	}
	
	@Override
	public List<T> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer save(T entity) {
		// TODO Auto-generated method stub
		return null;
	}

}
